#!usr/bin/env python  
# -*- coding:utf-8 -*-
""" 
@author:robot
@file: func2.py 
@version:
@time: 2024/01/22 
"""


class Solution(object):
    @staticmethod
    def find_num(nums):
        dic = {}
        for i in nums:
            dic[i] = dic.get(i, 0) + 1
        return max(dic.keys(), key=dic.get)


print(Solution().find_num([1, 2, 1, 2, 1]))
